+2007-05-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkentry.c: Move docs inline.
+
2007-05-26 Matthias Clasen <mclasen@redhat.com>
* gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments
+2007-05-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/tmpl/gtkentry.sgml: Move docs inline
+
+ * gtk/tmpl/gtklinkbutton.sgml:
+ * gtk/tmpl/gtkfilechooser.sgml:
+ * gtk/tmpl/gtkcellrenderer.sgml:
+ * gtk/tmpl/gtkenums.sgml:
+ * gtk/tmpl/gtkcontainer.sgml: Additions
+
2007-05-26 Matthias Clasen <mclasen@redhat.com>
* gdk/gdk-overrides.txt: Remove GdkBitmap
* gtk/gtk-sections.txt:
- * gtk/gtkenums.sgml:
- * gdk/rgb.sgml:
- * gdk/gcs.sgml:
+ * gtk/tmpl/gtkenums.sgml:
+ * gdk/tmpl/rgb.sgml:
+ * gdk/tmpl/gcs.sgml:
* gdk/tmpl/pango_interaction.sgml:
* gdk/tmpl/windows.sgml: Additions
@GTK_CELL_RENDERER_PRELIT: The mouse is hovering over the cell.
@GTK_CELL_RENDERER_INSENSITIVE: The cell is drawn in an insensitive manner
@GTK_CELL_RENDERER_SORTED: The cell is in a sorted row
-@GTK_CELL_RENDERER_FOCUSED:
+@GTK_CELL_RENDERER_FOCUSED: The cell is in the focus row.
<!-- ##### ENUM GtkCellRendererMode ##### -->
<para>
<!-- ##### MACRO GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID ##### -->
<para>
-
+This macro should be used to emit a standard warning about unexpected
+properties in set_child_property() and get_child_property() implementations.
</para>
-@object:
-@property_id:
-@pspec:
+@object: the #GObject on which set_child_property() or get_child_property()
+ was called
+@property_id: the numeric id of the property
+@pspec: the #GParamSpec of the property
<!-- ##### MACRO gtk_container_border_width ##### -->
</para>
-<para>
-Creates a new #GtkEntry widget.
-</para>
-
<!-- ##### ARG GtkEntry:inner-border ##### -->
<para>
<!-- ##### FUNCTION gtk_entry_set_text ##### -->
<para>
-Sets the text in the widget to the given
-value, replacing the current contents.
+
</para>
-@entry: a #GtkEntry.
-@text: the new text.
+@entry:
+@text:
<!-- ##### FUNCTION gtk_entry_append_text ##### -->
<para>
-Appends the given text to the contents of the widget.
+
</para>
-@entry: a #GtkEntry.
-@text: the text to append.
-@Deprecated: gtk_entry_append_text() is deprecated and should not
- be used in newly-written code. Use gtk_editable_insert_text()
- instead.
+@entry:
+@text:
<!-- ##### FUNCTION gtk_entry_prepend_text ##### -->
<para>
-Prepends the given text to the contents of the widget.
+
</para>
-@entry: a #GtkEntry.
-@text: the text to prepend.
-@Deprecated: gtk_entry_prepend_text() is deprecated and should not
- be used in newly-written code. Use gtk_editable_insert_text()
- instead.
+@entry:
+@text:
<!-- ##### FUNCTION gtk_entry_set_position ##### -->
<para>
-Sets the cursor position in an entry to the given
-value. This function is obsolete. You should use
-gtk_editable_set_position() instead.
+
</para>
-@entry: a #GtkEntry.
-@position: the position of the cursor. The cursor is displayed
- before the character with the given (base 0) index
- in the widget. The value must be less than or
- equal to the number of characters in the widget.
- A value of -1 indicates that the position should
- be set after the last character in the entry.
- Note that this position is in characters, not in
- bytes.
+@entry:
+@position:
<!-- ##### FUNCTION gtk_entry_get_text ##### -->
<!-- ##### FUNCTION gtk_entry_select_region ##### -->
<para>
-Selects a region of text. The characters that
-are selected are those characters at positions from
-@start_pos up to, but not including @end_pos. If
-@end_pos is negative, then the the characters selected
-will be those characters from @start_pos to the end
-of the text. This function is obsolete. You should
-use gtk_editable_select_region() instead.
+
</para>
-@entry: a #GtkEntry.
-@start: the starting position.
-@end: the end position.
+@entry:
+@start:
+@end:
<!-- ##### FUNCTION gtk_entry_set_visibility ##### -->
<para>
-Sets whether the contents of the entry are visible or
-not. When visibility is set to %FALSE, characters
-are displayed as the invisible char, and will also appear
-that way when the text in the entry widget is copied
-elsewhere.
-</para>
-<para>
-The default invisible char is the asterisk '*', but it can
-be changed with gtk_entry_set_invisible_char().
+
</para>
-@entry: a #GtkEntry.
-@visible: %TRUE if the contents of the entry are displayed
- as plaintext.
+@entry:
+@visible:
<!-- ##### FUNCTION gtk_entry_set_invisible_char ##### -->
<!-- ##### FUNCTION gtk_entry_set_editable ##### -->
<para>
-Determines if the user can edit the text in the editable
-widget or not. This function is obsolete. You should
-use gtk_editable_set_editable() instead.
+
</para>
-@entry: a #GtkEntry.
-@editable: %TRUE if the user is allowed to edit the text
- in the widget.
+@entry:
+@editable:
<!-- ##### FUNCTION gtk_entry_set_max_length ##### -->
</para>
@GTK_BUTTONBOX_DEFAULT_STYLE: Default packing.
-@GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the ButtonBox.
-@GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the ButtonBox.
-@GTK_BUTTONBOX_START: Buttons are grouped towards the start of box, (on the
-left for a HBox, or the top for a VBox).
-@GTK_BUTTONBOX_END: Buttons are grouped towards the end of a box, (on the
-right for a HBox, or the bottom for a VBox).
-@GTK_BUTTONBOX_CENTER:
+@GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the box.
+@GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the box.
+@GTK_BUTTONBOX_START: Buttons are grouped towards the start of the box,
+ (on the left for a HBox, or the top for a VBox).
+@GTK_BUTTONBOX_END: Buttons are grouped towards the end of the box,
+ (on the right for a HBox, or the bottom for a VBox).
+@GTK_BUTTONBOX_CENTER: Buttons are centered in the box. Since 2.12
<!-- ##### ENUM GtkCornerType ##### -->
<para>
@filechooser: the object which received the signal.
+<!-- ##### ARG GtkFileChooser:action ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:do-overwrite-confirmation ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:extra-widget ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:file-system-backend ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:filter ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:local-only ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:preview-widget ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:preview-widget-active ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:select-multiple ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:show-hidden ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkFileChooser:use-preview-label ##### -->
+<para>
+
+</para>
+
<!-- ##### ENUM GtkFileChooserAction ##### -->
<para>
Describes whether a #GtkFileChooser is being used to open
@GTK_FILE_CHOOSER_ERROR_NONEXISTENT: Indicates that a file does not exist.
@GTK_FILE_CHOOSER_ERROR_BAD_FILENAME: Indicates a malformed filename.
-@GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS:
+@GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS: Indicates a duplicate path (e.g. when
+ adding a bookmark).
<!-- ##### FUNCTION gtk_file_chooser_set_action ##### -->
<para>
@button: the #GtkLinkButton which was clicked
@link: the URI to which the clicked #GtkLinkButton points
-@user_data:
-<!-- # Unused Parameters # -->
-@data: user data that was passed when the function was registered
+@user_data: user data that was passed when the function was registered
with gtk_link_button_set_uri_hook()
return GTK_WIDGET (entry);
}
+/**
+ * gtk_entry_set_text:
+ * @entry: a #GtkEntry
+ * @text: the new text
+ *
+ * Sets the text in the widget to the given
+ * value, replacing the current contents.
+ */
void
gtk_entry_set_text (GtkEntry *entry,
const gchar *text)
g_signal_handler_unblock (entry, completion->priv->changed_id);
}
+/**
+ * gtk_entry_append_text:
+ * @entry: a #GtkEntry
+ * @text: the text to append
+ *
+ * Appends the given text to the contents of the widget.
+ *
+ * Deprecated: gtk_entry_append_text() is deprecated and should not
+ * be used in newly-written code. Use gtk_editable_insert_text()
+ * instead.
+ */
void
gtk_entry_append_text (GtkEntry *entry,
const gchar *text)
gtk_editable_insert_text (GTK_EDITABLE (entry), text, -1, &tmp_pos);
}
+/**
+ * gtk_entry_prepend_text:
+ * @entry: a #GtkEntry
+ * @text: the text to prepend
+ *
+ * Prepends the given text to the contents of the widget.
+ *
+ * Deprecated: gtk_entry_prepend_text() is deprecated and should not
+ * be used in newly-written code. Use gtk_editable_insert_text()
+ * instead.
+ */
void
gtk_entry_prepend_text (GtkEntry *entry,
const gchar *text)
gtk_editable_insert_text (GTK_EDITABLE (entry), text, -1, &tmp_pos);
}
+/**
+ * gtk_entry_set_position:
+ * @entry: a #GtkEntry
+ * @position: the position of the cursor. The cursor is displayed
+ * before the character with the given (base 0) index in the widget.
+ * The value must be less than or equal to the number of characters
+ * in the widget. A value of -1 indicates that the position should
+ * be set after the last character in the entry. Note that this
+ * position is in characters, not in bytes.
+ *
+ * Sets the cursor position in an entry to the given value.
+ *
+ * Deprecated: Use gtk_editable_set_position() instead.
+ */
void
gtk_entry_set_position (GtkEntry *entry,
gint position)
gtk_editable_set_position (GTK_EDITABLE (entry), position);
}
+/**
+ * gtk_entry_set_visibility:
+ * @entry: a #GtkEntry
+ * @visible: %TRUE if the contents of the entry are displayed
+ * as plaintext
+ *
+ * Sets whether the contents of the entry are visible or not.
+ * When visibility is set to %FALSE, characters are displayed
+ * as the invisible char, and will also appear that way when
+ * the text in the entry widget is copied elsewhere.
+ *
+ * The default invisible char is the asterisk '*', but it can
+ * be changed with gtk_entry_set_invisible_char().
+ */
void
gtk_entry_set_visibility (GtkEntry *entry,
gboolean visible)
return entry->invisible_char;
}
+/**
+ * gtk_entry_set_editable:
+ * @entry: a #GtkEntry
+ * @editable: %TRUE if the user is allowed to edit the text
+ * in the widget
+ *
+ * Determines if the user can edit the text in the editable
+ * widget or not.
+ *
+ * Deprecated: Use gtk_editable_set_editable() instead.
+ */
void
gtk_entry_set_editable (GtkEntry *entry,
gboolean editable)
return entry->text;
}
+/**
+ * gtk_entry_select_region:
+ * @entry: a #GtkEntry
+ * @start: the starting position
+ * @end: the end position
+ *
+ * Selects a region of text. The characters that are selected are
+ * those characters at positions from @start_pos up to, but not
+ * including @end_pos. If @end_pos is negative, then the the characters
+ * selected will be those characters from @start_pos to the end of
+ * the text.
+ *
+ * Deprecated: Use gtk_editable_select_region() instead.
+ */
void
gtk_entry_select_region (GtkEntry *entry,
gint start,